<script setup>
import { ref } from 'vue';
// import './style.css'
let msg = "你好"
let username = "郭旭旭"
let password = ref("123456")
let num = ref(100)
let incr = ()=>{
  num.value ++
}
let decr = ()=>{
  num.value --
}
</script>

<template>
  <div>
    <h1>{{ msg }}</h1>
    <input type="text" :value="username"><br>
    password : <input type="text" :value="password"><br>
    <input type="button" value="+" @click="incr">
    {{ num }}
    <input type="button" value="-" @click="decr">
  </div>
</template>

<style>
@import './style.css';
</style>
